﻿@model TCM.Student

@{
    ViewBag.Title = "Edit";
}

<h2>Edit</h2>

@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)

    <fieldset >
        <legend>Student</legend>
        <ol>
            @Html.HiddenFor(model => model.StudentID)

            <li class="editor-label">
                @Html.LabelFor(model => model.Name)

                @Html.EditorFor(model => model.Name)
                @Html.ValidationMessageFor(model => model.Name)
            </li>

            <li class="editor-label">
                @Html.LabelFor(model => model.NameAr)

                @Html.EditorFor(model => model.NameAr)
                @Html.ValidationMessageFor(model => model.NameAr)
            </li>


            <li class="editor-label">
                @Html.LabelFor(model => model.Email1)

                @Html.EditorFor(model => model.Email1)
                @Html.ValidationMessageFor(model => model.Email1)
            </li>

            <li class="editor-label">
                @Html.LabelFor(model => model.Email2)

                @Html.EditorFor(model => model.Email2)
                @Html.ValidationMessageFor(model => model.Email2)
            </li>

            <li class="editor-label">
                @Html.LabelFor(model => model.Mobile1)

                @Html.EditorFor(model => model.Mobile1)
                @Html.ValidationMessageFor(model => model.Mobile1)
            </li>

            <li class="editor-label">
                @Html.LabelFor(model => model.Mobile2)

                @Html.EditorFor(model => model.Mobile2)
                @Html.ValidationMessageFor(model => model.Mobile2)
            </li>

            <li class="editor-label">
                @Html.LabelFor(model => model.Address)

                @Html.EditorFor(model => model.Address)
                @Html.ValidationMessageFor(model => model.Address)
            </li>

            @*  <li class="editor-label">
            @Html.LabelFor(model => model.ADDRESSAR)
       
            @Html.EditorFor(model => model.ADDRESSAR)
            @Html.ValidationMessageFor(model => model.ADDRESSAR)
        </li>*@

            <li class="editor-label">
                @Html.LabelFor(model => model.Phone)

                @Html.EditorFor(model => model.Phone)
                @Html.ValidationMessageFor(model => model.Phone)
            </li>

            <li class="editor-label">
                @Html.LabelFor(model => model.Education)

                @Html.EditorFor(model => model.Education)
                @Html.ValidationMessageFor(model => model.Education)
            </li>

            <li class="editor-label OneColumn">
                @Html.LabelFor(model => model.OtherDetails)

                @Html.TextAreaFor(model => model.OtherDetails)
                @Html.ValidationMessageFor(model => model.OtherDetails)
            </li>

            @* <li class="editor-label">
            @Html.LabelFor(model => model.USERID)
        
            @Html.EditorFor(model => model.USERID)
            @Html.ValidationMessageFor(model => model.USERID)
        </li>

        <li class="editor-label">
            @Html.LabelFor(model => model.REFERENCE)
     
            @Html.EditorFor(model => model.REFERENCE)
            @Html.ValidationMessageFor(model => model.REFERENCE)
        </li>        *@

            <li class="editor-label">
                @Html.LabelFor(model => model.StatusID)

                @Html.DropDownList("StatusID", String.Empty)
                @Html.ValidationMessageFor(model => model.StatusID)
            </li>


            <li class="display-label">
                @Html.DisplayNameFor(model => model.CreatedBy)

                @Html.DisplayFor(model => model.CreatedBy)
            </li>
            <li class="display-label">
                @Html.DisplayNameFor(model => model.CreatedOn)

                @Html.DisplayFor(model => model.CreatedOn)
            </li>
            <li class="display-label">
                @Html.DisplayNameFor(model => model.ModifiedBy)

                @Html.DisplayFor(model => model.ModifiedBy)
            </li>

            <li class="display-label">
                @Html.DisplayNameFor(model => model.ModifiedOn)

                @Html.DisplayFor(model => model.ModifiedOn)
            </li>
            <li class="display-label">
                @Html.DisplayNameFor(model => model.OwnerID)

                @Html.DisplayFor(model => model.OwnerID)
            </li>

            <p>
                <input type="submit" value="Save" />
            </p>
        </ol>
       
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
